using DG.Tweening;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class BtnAnim_Move : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
    public MoveAnimInspector down;
    public MoveAnimInspector up;

    public void OnPointerDown(PointerEventData eventData)
    {
        transform.DOLocalMove(down.move, down.time).SetEase(down.ease);
    }

    public void OnPointerUp(PointerEventData eventData)
    {
        transform.DOLocalMove(up.move, up.time).SetEase(up.ease);
    }

    [Serializable]
    public class MoveAnimInspector
    {
        public Vector2 move;
        public float time;
        public Ease ease;
    }
}
